import { createApp } from 'vue'
import '@/styles/wb.scss'
import App from './App.vue'
import '@/permission'
import {createPinia} from 'pinia'
import piniaPersist from 'pinia-plugin-persist'
import router from '@/router'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import ResizeObserver from "resize-observer-polyfill";
import {ConfigUtils} from "@/utils/ConfigUtils";
import 'virtual:svg-icons-register'
import svgIcon from "@/icons/index.vue";
window.ResizeObserver = ResizeObserver;

ConfigUtils.readConfig();

createApp(App).component('svg-icon', svgIcon).use(router).use(createPinia().use(piniaPersist)).mount('#app')
